const socket = (token,type)=> {
  const wsUrl = process.env.WS_URL+`?type=${type?type:'user'}&token=` + token
  const socket = new WebSocket(wsUrl)
  return socket
}

export default socket